/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author TQNINH
 */
public class TestUsernameValidator {
    
    
    public TestUsernameValidator() {
        
    }
    
    public static void main(String[] args) {
        UsernameValidator objUV = new UsernameValidator();
        String[] ltUser = {"mkyong34",
                            "mkyong_2002",
                            "mkyong-2002",
                            "mk3-4_yong",
                            "mk",
                            "mk@yong",
                            "mkyong123456789_-"};
        for (int i = 0; i < ltUser.length; i++) {
            System.out.println(ltUser[i] + ": " + objUV.validate(ltUser[i]));
        }
    }
}
